﻿using Microsoft.EntityFrameworkCore;
using RBAC.Domain;
using System.Diagnostics;
using Traceability.Domain;

namespace RBAC.Repository
{
    public class EFcoreContext:DbContext
    {
        public EFcoreContext(DbContextOptions<EFcoreContext> options) : base(options) 
        { 
        
        }
        //映射
        #region  映射RBAC
        //映射用户信息
        public DbSet<UserInfo> UserInfos { get; set; }
        //映射省份信息
        public DbSet<Province> Provinces { get; set; }
        //映射市信息
        public DbSet<City> Citys { get; set; }
        //映射县信息
        public DbSet<Country> Countrys { get; set; }
        //映射角色信息
        public DbSet<Roles> Roles { get; set; }
        //映射用户与角色关系
        public DbSet<UserRole> UserRoles { get; set; }
        //映射菜单
        public DbSet<Menu> Menu { get; set; }
        //映射角色与菜单的关系
        public DbSet<RoleMenu> RoleMenu { get; set; }
        //映射请假信息
        public DbSet<Leave> Leave { get; set; }
        //映射请假分类
        public DbSet<LeaveTypes> LeaveTypes { get; set; }
        #endregion

        #region 映射第二个项目（麻辣兔头）
        //映射溯源表
        public DbSet<Traceabilitys> Traceabilitys { get; set; }
        //映射商品信息
        public DbSet<Goodsd> Goodsd { get; set; }
        //映射图片信息
        public DbSet<Imgs> Imgs { get; set; }
        //映射养殖企业信息
        public DbSet<BreedEnterprise> BreedEnterprise { get; set; }
        //映射养殖信息
        public DbSet<Breeds> Breeds { get; set; }
        //映射保健信息表
        public DbSet<Health> Health { get; set; }
        //映射屠宰信息表
        public DbSet<Slaughter> Slaughter { get; set; }
        //映射屠宰企业
        public DbSet<SlaughterEnterPrise> SlaughterEnterPrise { get; set; }
        //映射深加工信息表
        public DbSet<Processd> Processd { get; set; }
        
        //映射原料信息
        public DbSet<Raw> Raw { get; set; }
        //映射辅料信息
        public DbSet<Auxiliary> Auxiliary { get; set; }
        //映射添加剂信息
        public DbSet<Additive> Additive { get; set; }
        //映射包材信息
        public DbSet<Packaging> Packaging { get; set; }
        //映射深加工企业
        public DbSet<DeepEnterprises> DeepEnterprises { get; set; }



        #endregion


    }
}
